#include "stdafx.h"
#include "ustringutils.h"
#include "stdio.h"
#include <string>
#include <iostream>
#include <sstream>
#include "Lib.MatlabExtension.h"
#include "TradeCExport.h"

//typedef int ReportFunDef(int,const char*)
LIBMATLABEXTENSION_API int MTradeInitializeImp(const char* fname)
{
	//std::cout << "Get Msg from Matlab" <<code << " " <<msg<<std::endl;
	//::MessageBoxA(NULL,fname,"msg",MB_OK);
	bool ret = TradeInitialize(fname);
	return ret ? 0 : -1;
}